﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace GestionePolveriLib.Utilities
{
    public static class ComboBoxHelper
    {
        public static void LoadData(this ComboBox control, string displayMember, string valueMember, object data)
        {
            control.DisplayMember = "codicepolvere";
            control.ValueMember = "id";
            control.DataSource = data;
        }
    }
}
